const express = require('express');
const router = express.Router();
const constants = require('../data/constants')

const gb28181Controller = require('../controller/v1/gb28181');

/**
 * @api {post} /gb28181/changeStatus GB28181服务启停
 * @apiDescription GB28181服务启停
 * @apiName GB28181ChangeStatus
 * @apiGroup GB28181接口
 * @apiVersion 1.0.0
 */
router.post(constants.version +'gb28181/changeStatus',gb28181Controller.changeStatus);

/**
 * @api {post} /gb28181/getStatus 获取GB28181服务状态
 * @apiDescription 获取GB28181服务状态
 * @apiName GB28181GetStatus
 * @apiGroup GB28181接口
 * @apiVersion 1.0.0
 */
router.get(constants.version + 'gb28181/getStatus', gb28181Controller.getStatus);

router.get(constants.version + 'gb28181/getClients',gb28181Controller.getClients);

module.exports = router;